package com.chen.recruit.common.constants;

/**
 * 消息常量
 *
 * @author cgy
 * @date 2022/09/04
 */
public class MessageConstants {

    /* 用户相关消息 */
    public static final String CAPTCHA_ERROR = "验证码错误";
    public static final String USER_LOGIN_FAIL = "用户名或密码错误";
    public static final String RESET_PWD_FAIL = "用户名或邮箱错误";
    public static final String USERNAME_IS_DISABLE = "账号被禁用，请联系管理员";
    public static final String LOGIN_SUCCESS = "登录成功";
    public static final String OLD_PWD_ERROR = "原密码错误";
    public static final String USERNAME_REPEAT = "用户名已被占用";
    public static final String EMAIL_REPEAT = "邮箱已被占用";
    public static final String ADMIN_POST_ERROR = "岗位不能为空且必须为非禁用的岗位";
    public static final String ADMIN_COLLEGE_SELECT_FAIL = "院系不能为空且必须为非禁用的非班级";
    public static final String STUDENT_COLLEGE_SELECT_FAIL = "院系不能为空且必须为非禁用的班级";
    public static final String FILE_IS_EMPTY = "上传文件为空";
    public static final String PWD_NOT_BE_EMPTY = "密码不能为空";

    /* 角色相关消息 */
    public static final String ROLE_NAME_OR_CODE_REPEAT = "角色名称或编码重复";
    public static final String DELETE_ROLE_FAIL = "存在被用户关联的角色，无法删除";
    public static final String UPDATE_ROLE_STATUS_FAIL = "该角色被用户所关联，无法禁用";

    /* 通知公告相关消息 */
    public static final String TONG_ZHI_FAIL = "通知内容必须为空";
    public static final String GONG_GAO_FAIL = "公告内容不能为空";

    /* 岗位相关消息 */
    public static final String POST_NAME_EXIST = "岗位名称已存在";
    public static final String DELETE_POST_FAIL = "所选岗位下存在员工，无法删除";
    public static final String UPDATE_POST_STATUS_FAIL = "该岗位下存在员工，无法禁用";

    /* 院系相关信息 */
    public static final String COLLEGE_NAME_REPEAT = "院系名称重复，请检查";
    public static final String COLLEGE_TYPE_ERROR = "院系类型与上级学院不匹配";
    public static final String DELETE_COLLEGE_FAIL = "该院系下存在用户，无法删除";
    public static final String DELETE_COLLEGE_ERROR = "该院系下存在教室，无法删除";
    public static final String HAS_CHILDREN_COLLEGE = "该院系下存在子院系，无法禁用";
    public static final String UPDATE_COLLEGE_STATUS_FAIL = "该院系下存在用户，无法禁用";
    public static final String UPDATE_COLLEGE_STATUS_ERROR = "该院系下存在教室，无法禁用";

    /* 菜单相关消息 */
    public static final String MENU_NAME_REPEAT = "菜单名称重复，请检查";
    public static final String PARENT_MENU_TYPE_ERROR = "上级菜单类型不能为按钮";
    public static final String MENU_STATUS_ERROR = "该菜单被角色关联，无法禁用";
    public static final String DELETE_MENU_FAIL = "该菜单或其下的子菜单被角色所关联，无法删除";

    /* 岗位分类相关消息 */
    public static final String CLASSIFY_NAME_REPEAT = "分类名称已被占用";
    public static final String PARENT_CLASSIFY_ERROR = "父分类不能为本身";
    public static final String PARENT_CLASSIFY_FAIL = "分类层级最多为三级分类";
    public static final String DELETE_CLASSIFY_ERROR = "该分类下存在子分类，无法删除";
    public static final String DELETE_CLASSIFY_FAIL = "该分类下存在招聘岗位，无法删除";

    public static final String UNKNOWN_EXCEPTION = "未知错误";
    public static final String ADD_TYPE_FAIL = "分类层级超出最大层级，最多为三级分类";
    public static final String DELETE_TYPE_FAIL = "所选分类关联招聘岗位，无法删除";
    public static final String ADD_UPDATE_CLASSROOM_FAIL = "教室名称重复，请检查";
    public static final String DELETE_CLASSROOM_FAIL = "所选教室状态为占用中，无法删除";
    public static final String DELETE_JOB_FAIR_FAIL = "所选宣讲会有状态为通过，且宣讲尚未结束的";

}
